package com.qujia.customer.enums;

public enum CardUseRangeFlagEnum {

    SINGLE("2","单站使用"),
    MULTIPLE("1","多站通用"),
    ;

    private String code;

    private String text;

    CardUseRangeFlagEnum(String code, String text){
        this.code = code;
        this.text = text;
    }

    public static String getCardUseRangeFlag(String code){
        for (CardUseRangeFlagEnum value : CardUseRangeFlagEnum.values()) {
            if(value.getCode().equals(code)){
                return value.text;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
